/* 特殊模型基础样式 - 与一般模型保持一致 */

/* 主容器 */
.special-model-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

/* 顶部标题栏 */
.special-model-top-bar {
  background-image: url('/geometry/back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e5e7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.special-model-top-bar .back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: #1890ff;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: fit-content;
  position: relative;
  z-index: 10;
  margin-right: auto;
}

.special-model-top-bar .back-button:hover {
  background: #40a9ff;
}

.special-model-top-bar .back-button:active {
  transform: scale(0.98);
  background: #096dd9;
}

.special-model-top-bar .app-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1890ff;
  margin: 0;
  text-align: center;
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  text-shadow: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: none;
}

.special-model-top-bar .app-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 主内容区：左中右布局 */
.special-model-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #ffffff;
}

/* 左侧信息面板 */
.special-model-info {
  width: 110px;
  padding: 0.5rem 0.4rem;
  border-right: 1px solid #e5e5e7;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-item {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.1rem 0;
}

.info-label {
  color: #1d1d1f;
  font-weight: 500;
  font-style: italic;
}

.info-equals {
  color: #86868b;
  margin: 0 0.15rem;
}

.info-value {
  color: #007AFF;
  font-weight: 600;
  font-style: normal;
}

/* 中间画布区 */
.special-model-canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
  flex-direction: column;
}

.special-model-canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  cursor: grab;
  max-width: 1280px;
  max-height: 800px;
  aspect-ratio: 8 / 5;
  object-fit: contain;
}

.special-model-canvas:active {
  cursor: grabbing;
}

/* 右侧控制面板 */
.special-model-controls {
  width: 110px;
  padding: 0.5rem 0.4rem;
  border-left: 1px solid #e5e5e7;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #ffffff;
}

.special-model-controls .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1890ff;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
  min-width: fit-content;
}

.special-model-controls .btn:hover {
  background: #40a9ff;
}

.special-model-controls .btn:active {
  transform: scale(0.98);
  background: #096dd9;
}

.special-model-controls .btn:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

.special-model-controls .btn:disabled:hover {
  background: #d9d9d9;
  transform: none;
}

/* 下方信息栏 */
.special-model-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e5e5e7;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.special-model-footer .hint-text {
  color: #86868b;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .special-model-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vw;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100vw);
    margin-left: 0;
    margin-top: 0;
    overflow: hidden;
  }

  .special-model-content {
    flex-direction: row;
    height: calc(100vw - 60px - 60px);
  }

  .special-model-info {
    width: 130px;
    padding: 0.3rem 0.3rem;
    border-right: 1px solid #e5e5e7;
    gap: 0.1rem;
  }

  .info-item {
    font-size: 0.6rem;
    line-height: 1.1;
    padding: 0.08rem 0;
  }

  .special-model-canvas-wrapper {
    padding: 0.3rem;
  }

  .special-model-controls {
    width: 120px;
    padding: 0.3rem 0.3rem;
    border-left: 1px solid #e5e5e7;
    gap: 0.3rem;
  }

  .special-model-controls .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }

  .special-model-footer {
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
    font-size: 0.8125rem;
  }
}

